package com.yishan.security.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: yishan
 * @Date: 2022/8/25 16:01
 **/
@RestController
@RequestMapping("demo")
public class SecurityDemoController {


    @GetMapping("hello")
    //@PreAuthorize("@ex.hasAuthority('dev:code:write')")
    public String hello() {
        System.out.println();
        return "hello spring security ! ";
    }


}
